﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.TMS.OrderPackingRecord
{
	/// <summary>
	/// 订单包装材料记录
	/// </summary>
	public class OrderPackingRecordRequestDto
	{
		/// <summary>
		/// 订单Id
		/// </summary>		
		[Display(Name = "订单Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public long OrderId { get; set; }
		/// <summary>
		/// 订单编号
		/// </summary>		
		[Display(Name = "订单编号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string OrderNo { get; set; }
		/// <summary>
		/// 包装材料配置Id
		/// </summary>		
		[Display(Name = "包装材料配置Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int PackingConfigId { get; set; }
		/// <summary>
		/// 包装材料分类配置Id
		/// </summary>		
		[Display(Name = "包装材料分类配置Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int PackingCategoryConfigId { get; set; }
		/// <summary>
		/// 包装材料标题
		/// </summary>		
		[Display(Name = "包装材料标题")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 1, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PackingTitle { get; set; }
		/// <summary>
		/// 材料宽度
		/// </summary>		
		[Display(Name = "材料宽度")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int PackingWidth { get; set; }
		/// <summary>
		/// 材料长度
		/// </summary>		
		[Display(Name = "材料长度")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int PackingLength { get; set; }
		/// <summary>
		/// 材料高度
		/// </summary>		
		[Display(Name = "材料高度")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int PackingHeight { get; set; }
		/// <summary>
		/// 尺寸单位
		/// </summary>		
		[Display(Name = "尺寸单位")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public string DimensionUnit { get; set; }
		/// <summary>
		/// 显示单位
		/// </summary>		
		[Display(Name = "显示单位")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public string ShowUnit { get; set; }
		/// <summary>
		/// 转换单位比例
		/// </summary>		
		[Display(Name = "转换单位比例")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int TransformRatio { get; set; }
		/// <summary>
		/// 价格
		/// </summary>		
		[Display(Name = "价格")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public decimal Price { get; set; }
	}
}

